<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var map;
  function initialize() {
	
	// 메뉴얼 : http://code.google.com/intl/ko-KR/apis/maps/documentation/javascript/tutorial.html 
	
    var latlng = new google.maps.LatLng(37.566219,126.995156); 
    var myOptions = {		
		zoom: 15, 
		center: latlng,
		mapTypeId: google.maps.MapTypeId.ROADMAP
    };
	map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
  }

function randomMarker(){
	// 메뉴얼 : http://code.google.com/intl/ko-KR/apis/maps/documentation/javascript/overlays.html#Markers
	var marker = new google.maps.Marker({
      position: new google.maps.LatLng(37.566219+Math.random()/100,126.995156+Math.random()/100), 
      map: map, 
      title:"Hello World!"
  });
	
}
</script>
</head>
<body onload="initialize()">
  <div id="map_canvas" style="width:100%; height:90%"></div>
<div>
<input type="button" value="Random" onclick="randomMarker()">
</div>

</body>
</html>